package com.dlsp.hotel.mapper.admin;

import com.dlsp.hotel.bean.admin.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author:fanxh
 * @date: 2022/1/2/9:37
 * 后台用户的mapper
 */
@Mapper
public interface UserMapper {
     User findByUsername(String username);
     //后台用户登录
     User findByUsernameAndPwd(@Param("username") String username, @Param("password")String password);
     int add(User user);
     int edit(User user);
     int editPassword(User user);
     int delete(String ids);
     List<User> findList(Map<String, Object> queryMap);
     int getTotal(Map<String, Object> queryMap);
}
